package com.fingard.dsp.bank.reqrespobj.subaccount;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.xml.XmlTextReader;

/**
 * @Description TODO
 * @Author xtt
 * @Date $ $
 **/
public class ReqUpdateSubAccount extends RequestBase {
    //子账户（出口商编码-子公司编码）
    public String subAccount = "";
    //账户状态
    //操作类型0-新增 1-修改 2-删除
    public String operType = "";
    //供应商名称(出口商名称)
    public String customerName = "";
    //供应商英文名（出口商英文名）
    public String customerNameEn = "";
    //联系人1姓名
    public String contactName1;
    //申请组织代码
    public String orgcode = "";
    //联系人1手机号
    public String contactTel1;
    //联系人1电子邮箱
    public String contactEmail1;
    //联系人2姓名
    public String contactName2;
    //联系人2手机号
    public String contactTel2;
    //联系人2电子邮箱
    public String contactEmail2;
    //收款人模式 1-外综平台类企业 2-外综平台类企业+上游供应商 3-上游供应商
    public String mode;
    //序号
    public String serialNo = "";
    //影像资料文件名
    public String fileName = "";
    //影像资料md5
    public String fileMd5 = "";

    //出口商统一使用社会信用代码证
    public String companyCode;
    //母公司编码
    public String agentCode;



    public ReqUpdateSubAccount(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        operType = p_xmlReader.getSimpleTextNotNull("OperType");
        orgcode = p_xmlReader.getSimpleTextNotNull("OrgCode");
        subAccount = p_xmlReader.getSimpleTextNotNull("SubAccount");
        customerName = p_xmlReader.getSimpleTextNotNull("CustomerName");
        customerNameEn = p_xmlReader.getSimpleTextNotNull("CustomerNameEn");
        contactName1 = p_xmlReader.getSimpleTextNotNull("ContactName1");
        contactTel1 = p_xmlReader.getSimpleTextNotNull("ContactTel1");
        contactEmail1 = p_xmlReader.getSimpleTextNotNull("ContactEmail1");
        contactName2 = p_xmlReader.getSimpleTextNotNull("ContactName2");
        contactTel2 = p_xmlReader.getSimpleTextNotNull("ContactTel2");
        contactEmail2 = p_xmlReader.getSimpleTextNotNull("ContactEmail2");
        mode = p_xmlReader.getSimpleTextNotNull("Mode");
        serialNo = p_xmlReader.getSimpleTextNotNull("SerialNo");
        fileName = p_xmlReader.getSimpleTextNotNull("FileName");
        fileMd5 = p_xmlReader.getSimpleTextNotNull("FileMd5");
        companyCode = p_xmlReader.getSimpleTextNotNull("CompanyCode");
        agentCode = p_xmlReader.getSimpleTextNotNull("AgentCode");
    }
}
